package org.idea.qiyu.framework.rocketmq.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author linhao
 * @Date created in 8:53 上午 2021/6/29
 */
@ConfigurationProperties(prefix = "qiyu.rocketmq.producer")
public class RocketMqProducerProperties {

    private String nameSrv;

    private String groupName;

    private Integer maxMessageSize;

    private Integer sendMsgTimeout;

    private Integer retryTimes;

    public String getNameSrv() {
        return nameSrv;
    }

    public void setNameSrv(String nameSrv) {
        this.nameSrv = nameSrv;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getMaxMessageSize() {
        return maxMessageSize;
    }

    public void setMaxMessageSize(Integer maxMessageSize) {
        this.maxMessageSize = maxMessageSize;
    }

    public Integer getSendMsgTimeout() {
        return sendMsgTimeout;
    }

    public void setSendMsgTimeout(Integer sendMsgTimeout) {
        this.sendMsgTimeout = sendMsgTimeout;
    }

    public Integer getRetryTimes() {
        return retryTimes;
    }

    public void setRetryTimes(Integer retryTimes) {
        this.retryTimes = retryTimes;
    }

    @Override
    public String toString() {
        return "RocketMqProducerProperties{" +
                "nameSrv='" + nameSrv + '\'' +
                ", groupName='" + groupName + '\'' +
                ", maxMessageSize=" + maxMessageSize +
                ", sendMsgTimeout=" + sendMsgTimeout +
                ", retryTimes=" + retryTimes +
                '}';
    }
}
